Skip to content

Restore BSP base directory to the original workspace regardless of permissions/ownership#4273

Merged
Gedochao merged 2 commits into
VirtusLab:mainfrom
Gedochao:fix/wonky-base-directory
May 18, 2026
Merged

Restore BSP base directory to the original workspace regardless of permissions/ownership#4273
Gedochao merged 2 commits into
VirtusLab:mainfrom
Gedochao:fix/wonky-base-directory

Conversation

@Gedochao
Copy link
Copy Markdown
Contributor

@Gedochao Gedochao commented May 14, 2026

If the owner of the workspace directory changes or permissions don't match, .scala-build directory gets saved in a temporary directory.
This in turn breaks BSP reporting the temporary directory in workspaceBuildTarget endpoints.
The ownership change happens when adding files in containerised IntelliJ setups, which makes supporting Scala CLI there tricky.

Checklist

  • ran the tests locally and it works
  • ran the code formatter (scala-cli fmt .)
  • ran scalafix (./mill -i __.fix)

How much have your relied on LLM-based tools in this contribution?

Extensively, Cursor + Claude

How was the solution tested?

Added new integration tests

@Gedochao Gedochao force-pushed the fix/wonky-base-directory branch from dd61325 to 6060cd6 Compare May 15, 2026 17:11
@Gedochao Gedochao marked this pull request as ready for review May 17, 2026 19:11
@Gedochao Gedochao requested review from tgodzik and zielinsky May 17, 2026 19:11
@Gedochao Gedochao merged commit f50432b into VirtusLab:main May 18, 2026
88 of 106 checks passed
@Gedochao Gedochao deleted the fix/wonky-base-directory branch May 18, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants